package com.cw.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.alibaba.excel.annotation.ExcelProperty;

/**
* @author smq
* @since 2021-04-28
*/
@ApiModel(value ="用户、部门、职务")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("USER_DEPT_POST")
public class UserDeptPost implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId("id")
    private String id;

    @ApiModelProperty(value = "用户主键")
    @ExcelProperty(value = "U_ID")
    @TableField("U_ID")
    private String uId;

    @ApiModelProperty(value = "部门主键")
    @ExcelProperty(value = "D_ID")
    @TableField("D_ID")
    private String dId;

    @ApiModelProperty(value = "职务主键")
    @ExcelProperty(value = "P_ID")
    @TableField("P_ID")
    private String pId;

    @ExcelProperty(value = "CREATE_TIME")
    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    @ExcelProperty(value = "CREATE_BY")
    @TableField("CREATE_BY")
    private String createBy;

    @ExcelProperty(value = "DELETE_FLAG")
    @TableField("DELETE_FLAG")
    private String deleteFlag;

}
